<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2022-10-09
 * Time: 20:49
 */

namespace App\controller\work;
use support\Request;
use App\model\Staff as StaffModel;
class Staff
{
    public function save (Request $request)
    {
        StaffModel::whereNotNull('staff_id')->delete();
        $post= $request->post();
        $j=(new StaffModel())->saveAll($post);
        return json($j);
    }
}